/*
 * Register window handles
 */

typedef enum _registrytype
{
        Unknown = 0,
        Document = 1,
        Template = 2,
        Winflags = 3,
        Grid = 4,       
        Extent = 5,
        Props = 6,
        MoreProps = 7,
        SaveAs = 8,
        Colours = 9,
        Info = 10
} RegistryType;

error * registry_register_window (int handle, RegistryType type, void *closure);
error * registry_deregister_window (int handle);
RegistryType registry_lookup_window (int handle, void **closure);
int registry_enumerate_windows (int i, RegistryType *type, int *handle, void **closure);
